using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Nirvana
{
    [CustomEditor(typeof(PreviewScene))]
    public class PreviewSceneInspector : Editor
    {
        private PreviewScene _preview;

        private void OnEnable()
        {
            _preview = target as PreviewScene;
        }

        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("加载场景"))
            {
                _preview.LoadScene();
            }
        }
    }
}